package com.dms.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dms.entity.Suser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

//绑定Suser并且继承BaseMapper
@Mapper
public interface SuserMapper extends BaseMapper<Suser> {
    List<Suser> listAll();  //创建listAll()方法查询数据

    IPage pageC(Page<Suser> page);

    IPage pageCC(IPage<Suser> page, @Param(Constants.WRAPPER) Wrapper wrapper);
}
